<div xmlns:th="http://www.thymeleaf.org" th:if="${'qa'==type}" >

    <!--未审核 提问-->
    <div class="action-item" th:if="${flat=='0'}" th:id="${'item'+var1.qid}" th:each="var1 : ${qaList.get(1)}">
        <div class="action-item-title" >
            <a href="#" th:text="${var1.QTitle}"></a>
        </div>
        <div class="ansower-collect">
            <span style="color:red" >审核中</span><span class="dotted"></span><span th:text="${var1.auditTime}">2020-08-06</span>
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a href="javascript:;" th:onclick="delQa([[${var1.qid}]])" th:id="${var1.qid}">删除</a>
            </div>
        </div>
    </div>
    <!--已审核 提问-->
    <div class="action-item" id="item202007211285405816429613056" th:each="var1 : ${qaList.get(0)}">
        <div class="action-item-title">
            <a th:href="@{'/answers/'+${var1.qid}}" target="_blank" th:text="${var1.qTitle}">牙齿掉了，怎么处理？</a>
        </div>
        <div class="ansower-collect">
            <span><span th:text="${var1.answer}">1</span>回答</span>
            <span class="dotted"></span><span><span th:text="${var1.collectionCount}"></span>收藏</span>
        </div>
        <div class="ansower-content" th:if="${var1.QContent!=null}">
            [问题背景] <span th:text="${var1.QContent}">是埋了还是，，，，，</span>
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a th:href="@{'/answers/'+${var1.qid}}" class="ansower-color" target="_blank"><img src="/icon/Write.png" alt="有贝口腔网"><span>回答</span></a>
                <a th:href="@{'/answers/'+${var1.qid}}" target="_blank"><span th:text="${var1.readCount}">14</span>阅读</a>
                <a th:href="@{'/answers/'+${var1.qid}}" target="_blank"><span th:text="${var1.auditTime}">2020-07-21</span></a>
            </div>
        </div>
    </div>






</div>
<div xmlns:th="http://www.thymeleaf.org" th:if="${'qaReply'==type}">

    <!--未审核-->
    <div class="action-item" th:if="${flat=='0'}" th:id="${'itemno'+var.aidNo}" th:each="var : ${answersList.get(1)}">
            <div class="action-item-title">
                <a th:href="@{'/answers/'+${var.qid}}" target="_blank" th:text="${var.QTitle}">小孩六岁了，上面门牙全让蛀了，会不会影响到换牙呢？</a>
            </div>
            <div class="ansower-collect">
                <span>0</span>回答
                <span class="dotted"></span>
                <span>0</span>收藏
            </div>
            <div class="ansower-content">
                <a target="javascript:;" onclick="editQaReply(this)" th:id="${var.aidNo}">[回答内容]
                    <span th:utext="${var.aaContent}"></span></a>
            </div>
            <div class="ansower-content" style="color:red">
                <span th:if="${var.state==1}">审核中</span>：
                <span th:if="${var.state==2}" th:text="${'未通过  原因：'+var.reasons}"></span>
            </div>
            <div class="ansower-share-setting">
                <div class="ansower-share">
                    <a href="#"><span >0</span>点赞</a>
                    <a href="#"><span >0</span>评论</a>
                </div>
                <div class="ansower-setting">
                    <a href="javascript:;" class="show-this-editor" th:onclick="editQaReply([[${var}]])" th:id="${var.aidNo}"><span>编辑</span></a>
                    <a href="javascript:;" class="show-this-editor" th:onclick="delQaReply([[${var.aidNo}]],'no')" th:id="${var.aidNo}"><span>删除</span></a>
                </div>
            </div>
        </div>


    <div class="action-item" th:id="${'itemyes'+var.answerId}" th:each="var : ${answersList.get(0)}">
        <div class="action-item-title">
            <a th:href="@{'/answers/'+${var.aid}}" target="_blank" th:text="${var.QTitle}">牙龈萎缩对龅牙有没有好处？</a>
        </div>
        <div class="ansower-collect">
            <span th:text="${var.count}">2</span>回答
            <span class="dotted"></span>
            <span th:text="${var.collection_count}">0</span>收藏
        </div>
        <div class="ansower-content">
            <a target="javascript:;" onclick="editQaReply(this)" th:id="${var.aid}">[回答内容] <span th:utext="${var.answerComment}"></span></a>
        </div>

        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a href="#"><span th:text="${var.ALike}">0</span>点赞</a>
                <a href="#"><span th:text="${var.count}">0</span>评论</a>
            </div>
            <div class="ansower-setting" th:if="${flat=='0'}">
                <a href="javascript:;" class="show-this-editor" th:onclick="editQaReply([[${var}]])" th:id="${var.aid}"><span>编辑</span></a>
                <a href="javascript:;" class="show-this-editor" th:onclick="delQaReply([[${var.answerId}]],'yes')" th:id="${var.aid}"><span>删除</span></a>
            </div>
        </div>


    </div>


</div>
<div xmlns:th="http://www.thymeleaf.org" th:if="${'article' == type}" >
    <!--未审核-->
    <div class="action-item" th:if="${flat=='0'}"  th:id="${'item'+var.aid}" th:each="var : ${articleList.get(1)}">
        <div class="action-item-title">
            <a href="#" th:text="${var.ATitle}">sssssssssssssssssssssssssssssss</a>
        </div>
        <div class="ansower-collect">
            <span style="color:red" th:if="${var.state==1}">审核中</span>
            <span style="color:red" th:if="${var.state==3}" th:text="${'未通过  原因：'+var.reasons}"></span>
            <span class="dotted"></span>
            <span th:text="${var.time}">23小时前</span>
        </div>
        <div class="ansower-content" style="overflow: hidden;/*自动隐藏文字*/
text-overflow: ellipsis;/*文字隐藏后添加省略号*/
display: -webkit-box;
-webkit-line-clamp:2; /*想要显示的行数*/
-webkit-box-orient: vertical;">
            <a href="javascript:;" th:onclick="editArt([[${var.aid}]],'no')" th:id="${var.aid}">
                [简介]：<span th:utext="${var.AContent}">sssssssssssssssssssssssssssssssssssssssssssssssssss5</span>
            </a>
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
            </div>
            <div class="ansower-setting">
                <a href="javascript:;" class="show-this-editor" th:onclick="editArt([[${var}]],'no')" th:id="${var.aid}"><span>编辑</span></a>
                <a href="javascript:;" class="show-this-editor" th:onclick="delArt([[${var.aid}]],'no')" th:id="${var.aid}"><span>删除</span></a>
            </div>
        </div>

    </div>
    <div class="action-item" th:id="${'item'+var.aid}" th:each="var : ${articleList.get(0)}">
        <div class="action-item-title" >
            <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank" th:text="${var.ATitle}">烟牙怎么处理</a>
        </div>
        <div class="ansower-collect">
            <span th:text="${var.collectCount}">0</span>人收藏
        </div>

        <div class="ansower-content" style="overflow: hidden;/*自动隐藏文字*/
text-overflow: ellipsis;/*文字隐藏后添加省略号*/
display: -webkit-box;
-webkit-line-clamp:2; /*想要显示的行数*/
-webkit-box-orient: vertical;">
            <a href="javascript:;" th:onclick="editArt([[${var.aid}]],'yes')" th:id="${var.aid}">
                [简介]：
                <span th:utext="${var.AContent}"></span>
            </a>
        </div>

        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.readCount}">8</span>阅读</a>
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.count}">0</span>评论</a>
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.auditTime}">2020-08-06</span></a>
            </div>
            <div class="ansower-setting" th:if="${flat=='0'}">
                <a href="javascript:;" class="show-this-editor" th:onclick="editArt([[${var}]],'yes')" th:id="${var.aid}"><span>编辑</span></a>
                <a href="javascript:;" class="show-this-editor" th:onclick="delArt([[${var.aid}]],'yes')" th:id="${var.aid}"><span>删除</span></a>
            </div>
        </div>

    </div>


</div>
<div xmlns:th="http://www.thymeleaf.org" th:if="${'collect'==type}" th:each="var : ${collectList}">
    <div class="action-item" th:id="${'item'+var.cid}" th:if="${var.typeId != 0}">
        <div class="action-item-top">
            <div class="item-span">
                <span class="status-word">收藏了问题</span>
                <span class="time" >6天前</span>
            </div>
            <span class="delete" th:onclick="delCollect([[${var.cid}]])" th:id="${var.aid}">x</span>
        </div>
        <div class="action-item-title">
            <a th:href="@{'/answers/'+${var.aid}}" target="_blank" th:text="${var.title}">牙齿矫正对额头凹陷有没有用？</a>
        </div>
        <div class="ansower-collect">
            <span th:text="${var.raiseNum}">1</span>回答
            <span class="dotted"></span>
            <span th:text="${var.collect}">1</span>人收藏
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a th:href="@{'/answers/'+${var.aid}}" class="ansower-color" target="_blank"><img src="/icon/Write.png" alt="有贝口腔网"><span>回答</span></a>
                <a th:href="@{'/answers/'+${var.aid}}" target="_blank"><span th:text="${var.readCount}">9</span>阅读</a>
            </div>
        </div>
    </div>
    <div class="action-item" th:id="${'item'+var.cid}" th:if="${var.typeId != 1}">
        <div class="action-item-top">
            <div class="item-span">
                <span class="status-word" >收藏了资讯</span>
                <span class="time" >2020-08-10</span>
            </div>
            <span class="delete" th:onclick="delCollect([[${var.cid}]])" th:id="${var.cid}">x</span>
        </div>
        <div class="action-item-title">
            <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank" th:text="${var.title}">舌侧隐形矫正的优点与适用人群</a>
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.readCount+'阅读'}">194阅读</span></a>
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.raiseNum + '评论'}">0评论</span></a>
                <a th:href="@{'/consult/solo/'+${var.aid}}" target="_blank"><span th:text="${var.collect+ '收藏'}">1收藏</span></a>
            </div>
        </div>
    </div>
</div>
<div xmlns:th="http://www.thymeleaf.org" th:if="${'dynamic'==type}" th:each="var : ${dynamicList}">
    <div class="action-item" th:if="${var.type==2}" th:id="${'item'+var.did}">
        <div class="action-item-top">
            <div class="item-span">
                <span class="status-word" >回答了问题</span>
                <span class="time">2天前</span>
            </div>
            <span class="delete" th:onclick="delDy([[${var.did}]])" id="739">x</span>
        </div>
        <div class="action-item-title">
<!--            th:href="@{'/answers/'+${var.qid}}"-->
            <a  target="_blank" th:text="${var.title}">小孩六岁了，上面门牙全让蛀了，会不会影响到换牙呢？</a>
        </div>
        <div class="ansower-collect">
            <span>1回答</span>
            <span class="dotted"></span>
            <span>1收藏</span>
        </div>
        <div class="ansower-content">
            <a target="_blank" th:text="${'[回答内容]'+var.ontent}">[回答内容] 这个不清楚了，去有贝看看zxczxcss</a>
        </div>
        <div class="ansower-share-setting">
            <div class="ansower-share">
                <a href="#" target="_blank"><span th:text="${var.readCount+'点赞'}">0点赞</span></a>
                <a href="#" target="_blank"><span th:text="${var.raiseNum+'评论'}">1评论</span></a>
            </div>
        </div>


    </div>
</div>